#pragma once

#include <string>
#include <sstream>
//#include <curl/curl.h>
#include <mymutex.hxx>

using namespace std;

typedef void(*DMFun)(std::string,int);
class FileLog;

class DecaptcherUU
{
public:
	DecaptcherUU(DMFun f, FileLog* filelog=0);
	~DecaptcherUU();

	virtual int Decode(char* image, int inLen, string& result);
	virtual int Refund(int genId);

protected:

	/* Disallow constructors. */
	DecaptcherUU(const DecaptcherUU& model){}

	bool Init(void);

private:
	DMFun DisplayMsg;
	FileLog* _filelog;
};